import sun.corba.Bridge;

public class Main {
    public static void main(String[] args) {
        Driver a = new Driver();
        a.old = 50;
        a.gender = "男";
        //System.out.println(a.old);
        //System.out.println(a.gender);
        a.driving();

        Duck b = new Duck();
        b.colour = "黄色";
        b.weight = 10;
        b.walk();

        Elephant c = new Elephant();
        c.high = 3.5f;
        c.weight = 1200.5f;
        c.run();

        Lamp d = new Lamp();
        d.length = 1;
        d.colour = "白色";
        d.bright();

        Plane e = new Plane();
        e.length = 20.3f;
        e.high = 4;
        e.fly();

        Phone f = new Phone();
        f.colour = "white";
        f.weight = 20.1f;
        f.speak();

        Movie g = new Movie();
        g.type = "爱情";
        g.mins = "2小时";
        g.watch();

        Drinks h = new Drinks();
        h.taste = "甜的";
        h.volume = 10;
        h.drink();

        Cup i = new Cup();
        i.colour = "white";
        i.size = "大";
        i.hold();

        Child j = new Child();
        j.length = 1.4f;
        j.weight = 68.9f;
        j.cry();

        Book k = new Book();
        k.length = 20.1f;
        k.wide = 12.3f;
        k.read();

        Bird l = new Bird();
        l.weight = 20;
        l.name = "小黄";
        l.fly();

        Bicycle m = new Bicycle();
        m.length = 1.5f;
        m.weight = 30.4f;
        m.ride();

        Pear n = new Pear();
        n.colour = "黄色";
        n.weight = 100;
        n.eat();

        Pen o = new Pen();
        o.colour = "绿色";
        o.length = 10;
        o.write();
    }
}


